export const UploadType = [
    { label: 'Json数据集', type: 0 },
    { label: '单一语言源代码文件', type: 1 }
]

export const LanguageType = [
    { label: 'Java', lang: 'Java' },
    { label: 'JavaScript', lang: 'JavaScript' },
    { label: 'Ruby', lang: 'Ruby' },
    { label: 'Python', lang: 'Python' },
    { label: 'C++', lang: 'Cpp' },
    { label: 'Go', lang: 'Golang' }
]

export const AnalysisState = [
    { label: "分析失败", state: -1 },
    { label: "未分析", state: 0 },
    { label: "分析中", state: 1 },
    { label: "分析完成", state: 2 },
]

export const DiagramType = [
    { label: "AST", type: 1 },
    { label: "CFG", type: 2 },
    { label: "CDG", type: 3 },
    { label: "DDG", type: 4 }
    // { label: "CPG", type: 5 },
]

export const ExportType = [
    { label: "单一语言源代码图结果", type: 0 },
    { label: "单一语言源代码分析数据", type: 1 },
    { label: "JSONL 图结果", type: 2 },
    { label: "JSONL 分析数据", type: 3 }
]

export const LangDemo = [
    { label: "Cpp", demo: "void test() {\n\tstd::cout << \"请输入源代码\";\n\n}" },
    { label: "JavaScript", demo: "function test() {\n\t// 函数名，形参列表可自行修改\n\tconsole.log(\"请输入源代码\");\n\n}" },
    { label: "Java", demo: "class Demo {\n\tpublic void test() {\n\t\tSystem.out.println(\"请输入源代码\");\n\n\t}\n}" },
    { label: "Python", demo: "def test():\n\tprint(\"请输入源代码\")\n" },
    { label: "Golang", demo: "func test(){\n\t//函数名，形参列表可自行修改\n\tfmt.Println(\"请输入源代码\")\n\n}" },
    { label: "Ruby", demo: "def test()\n\tputs\"请输入源代码\"\n\nend" }
]

export const ExportFormat = [
    { format: "JSON"},
    { format: "DOT"},
    { format: "GML"}
]